#ifndef HOME_H
#define HOME_H

#include <QWidget>
#include <QLabel>
#include <QScrollArea>
#include <QVBoxLayout>
#include <QTextEdit>
#include <QPushButton>
#include <QStackedWidget>

class home : public QWidget
{
    Q_OBJECT

public:
    explicit home(QWidget *parent = nullptr);
    ~home();

public:
    void homeParaInit(); // Window initialization
    void onOffIcon(); // set on/off is icon
    void SlidingWindowInit(); // Sliding Window Initialization


private slots:
    void qPBut0Clicked(bool checked);
    void qPBut1Clicked(bool checked);
    void qPBut2Clicked(bool checked);

public:
    QStackedWidget* QStackWidget;
    QWidget* arpPage0; // arp
    QWidget* blackPage1; // 黑名单

    // 创建滑动窗口
    QStackedWidget* QSbarStackedWidget0;
    QStackedWidget* QSbarStackedWidget1;
    QWidget* QWidgetSArea0;
    QWidget* QWidgetSArea1;
    QScrollArea* QSBar0;
    QScrollArea* QSBar1;

    // 滑动窗口文本
    QTextEdit *textEdit0;
    QTextEdit *textEdit1;

    QPushButton* QpBut0;
    QPushButton* QpBut1;
    QPushButton* QpBut2;

    bool onOffFlag = false;
    QLabel* onOffTitle;

};
#endif // HOME_H





